//
//  IMIRnUtils.h
//  IMIHome
//
//  Created by 严敏 on 2020/11/26.
//  Copyright © 2020 上海创米科技有限公司. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <React/RCTBridgeModule.h>

NS_ASSUME_NONNULL_BEGIN

@interface ILRnUtils : NSObject

//格式化原生接口返回Promise.reject
+ (void)rejectError:(RCTPromiseRejectBlock)reject code:(NSInteger)code message:(NSString *)message;

//格式化原生接口返回Promise.reject
+ (void)rejectError:(RCTPromiseRejectBlock)reject error:(NSError * _Nullable)error;
@end

NS_ASSUME_NONNULL_END
